// 路由配置
import { Login, Preview } from "../pages";

// 多个页面 路由地址
import baseRouters from "./base";

export type RouterType = {
  path: string;
  component: React.LazyExoticComponent<any>;
  root: string[];
  notExect?: Boolean;
};

const LoginRouter: RouterType = {
  path: "/login",
  component: Login,
  root: [],
};

const testRouter: RouterType = {
  path: "/preview",
  component: Preview,
  root: [],
};

// 总路由
const Routers: RouterType[] = [LoginRouter, ...baseRouters, testRouter];

export { Routers };
